Skip to content

Conversation

alanprot
Copy link
Member

@alanprot alanprot commented Aug 21, 2023

What this PR does:
Fixing bucket index status when index is not cached and we failed to load the index due access denied - In this case we should not fallback to Unknown but instead try to load the status from the objstore.

This fix the case when querier regain access to the CMK key after the permission was revoked for longer than -blocks-storage.bucket-store.bucket-index.max-stale-period. (in those cases we could read the bucket index again but the index was stale causing 5xx)

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Alan Protasio <alanprot@gmail.com>
@alanprot alanprot force-pushed the fix/sync-bucket-index-status branch from 96d22eb to f79501a Compare August 21, 2023 18:03
@alanprot alanprot marked this pull request as ready for review August 21, 2023 20:12
@alanprot alanprot requested a review from yeya24 August 21, 2023 20:12
@alanprot alanprot merged commit ef2a51d into cortexproject:master Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants